package com.yihu.wlyy.service.system;

import com.yihu.wlyy.entity.dict.SystemDict;
import com.yihu.wlyy.repository.SystemDictDao;
import com.yihu.wlyy.repository.SystemDictListDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/13.
 */
@Service
public class SystemDictService {
    @Autowired
    private SystemDictDao systemDictDao;
    @Autowired
    private SystemDictListDao systemDictListDao;

    public List<SystemDict> getDictByDictName(String name) {
        return systemDictDao.findByDictName(name);
    }
}
